<%-- 
    Document   : mainclient
    Created on : Dec 31, 2011, 11:01:30 PM
    Author     : VIC
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="Beans.*,java.util.Vector,Models.*"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="format-detection" content="telephone=no">
        <title>i-Order System</title>
        <script type="text/javascript" src="js/iscroll.js"></script>
        
    </head>
    <%
                int langid = 1; // ngôn ngữ hiện tại
                if(session.getAttribute("langid") == null)
                    langid = NgonNgu_Model.NgonnguMD();
                else
                {
                    langid = (Integer) session.getAttribute("langid");
                    NhanVien nv = (NhanVien) session.getAttribute("nv");

                }  
                String dsts = "'accep','guide1','guide2','guide3','cancel','food','index','drink','viewor','start','tbnum','skip','signin','signout','seltb','selecttb','updatesuc','updatefal','jointb','clean','free' "; // chuỗi chứa các mã tham số của trang này.
                ThamSoHT[] mdsts = ThamSoHT_Model.DSThamSo(dsts, langid); // mảng chứa các tham số của trang này.
                String accep = mdsts[0].getTenTS();
                String cancel = mdsts[1].getTenTS();
                String clean = mdsts[2].getTenTS();
                String drink = mdsts[3].getTenTS();
                String food = mdsts[4].getTenTS();
                String free = mdsts[5].getTenTS();
                String guide1 = mdsts[6].getTenTS();
                String guide2 = mdsts[7].getTenTS();
                String guide3 = mdsts[8].getTenTS();
                String index = mdsts[9].getTenTS();
                String jointb = mdsts[10].getTenTS();
                String selecttb = mdsts[11].getTenTS();
                String seltb = mdsts[12].getTenTS();
                String signin = mdsts[13].getTenTS();
                String signout = mdsts[14].getTenTS();
                String skip = mdsts[15].getTenTS();
                String start = mdsts[16].getTenTS();
                String tbnum = mdsts[17].getTenTS();
                String updatefal = mdsts[18].getTenTS();
                String updatesuc = mdsts[19].getTenTS();
                String viewor = mdsts[20].getTenTS();
    %>
    <body onload="window.scrollTo(0, 1);">
        <div id="phieu"></div>
        <div id="zoom"></div>
        <div id="ghichu"></div>
        
        <div id="capnhattk"></div>
        <div class="title">
            <ul class="horizontal">
                <li class="nut" style="width: 30%;text-align: center">
                    <a onclick="Show('index');" href="#"><%= index %></a>
                     <div class="extended" id="index">
                        <div class="arrow-up"></div>
                        <ul class="smallNav">
                            <li onclick="Guide();"><a href="#"><%= start %></a></li>
                                <li onclick="listfood('1','','');"><a href="#"><%=food %></a></li>
                                <li onclick="listfood('2','','');"><a href="#"><%=drink %></a></li>
                        </ul>
                    </div>
                </li>
                <li style="width: 40%;text-align: center;margin-top: 5px">
                   <a href="#"><img onclick="Home();" src="images/home.png"></a>
                   <div style="margin-left: -30px;" class="extended" id="fclogin"></div>
                </li>
                <li class="nut"  style="width: 30%;text-align: center">
                    <a href="#" onclick="XemPhieu('<%=selecttb %>','<%=accep %>');" ><%=viewor %></a>
                </li>
            </ul>
        </div>
        <div id="fooddrink" class="fd">
            <ul>
                <li style="width: 45%;text-align: right"><a id="foodt" onclick="listfood('1','','');" href="#"><%=food %></a> </li>
                <li style="width: 10%;text-align: center"><img src="images/split.png"></li>
                <li style="width: 45%;text-align: left"><a id="drinkt" onclick="listfood('2','','');" href="#"><%=drink %></a> </li>
            </ul>
        </div>
        <div id="listfd">
            <div id="slideshow">
                <div id="slidesContainer">
                    
                
                </div>
            </div>
        </div>
       
        <div class="fd" id="navi">
            <ul>
                <li style=" float: right;width: 50%;text-align: right;">
                    <form name="csearch" onsubmit="CSearch();">
                        <input style=" float: left" name="keyword" type="text" placeholder=".......................">
                        <input style=" float: left" onclick="CSearch();" class="search" type="button">
                    </form>
                </li>
            </ul>
        </div>
        <div id="guide">
            <div class="tabtitlered">
                <label><%= start %></label>
            </div>
            <div>
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="ha"> <img width="100px" height="100px" src="images/swipe.png"> </td>
                        <td>
                            <div class="info">
                                <p><%= guide1 %></p>
                            </div>                           
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="info">
                                <p><%= guide2 %></p>
                            </div>
                        </td>
                        <td class="ha"> <img width="100px" height="100px" src="images/swipe2.png"></td>
                    </tr>
                    <tr>
                        <td class="ha"> <img width="100px" height="100px" src="images/swipe1.png"> </td>
                        <td>
                            <div class="info">
                                <p><%= guide3 %></p>
                            </div>
                       </td>
                    </tr>
                </table>
            </div>
            <div class="tabtitleredrev">
                <input class="simplemodal-close" type="button" value="<%=skip %>"/>
            </div>
        </div>
            <div id="tablemodal" class="tablemodal">
            <div class="tabtitle"></div>
            <div class="tablenumber">
                <p><%=tbnum %> :</p>
            </div>
            <div align="center" class="tabkey">
                <input id="numtable" maxlength="4" disabled="true" value="" />
                <table cellpadding="5" cellspacing="10">
                    <tr>
                        <td onclick="NumTable('1');">1</td>
                        <td onclick="NumTable('2');">2</td>
                        <td onclick="NumTable('3');">3</td>
                    </tr>
                    <tr>
                        <td onclick="NumTable('4');">4</td>
                        <td onclick="NumTable('5');">5</td>
                        <td onclick="NumTable('6');">6</td>
                    </tr>
                    <tr>
                        <td onclick="NumTable('7');">7</td>
                        <td onclick="NumTable('8');">8</td>
                        <td onclick="NumTable('9');">9</td>
                    </tr>
                    <tr>
                        <td onclick="NumTable('0');">0</td>
                        <td colspan="2" onclick="NumTable('b');"><< </td>
                    </tr>
                </table>
            </div>
            <div align="center" class="tabfunc">
                <input class="simplemodal-close" onclick="SetTableDV('<%=updatesuc %>','<%=updatefal %>','<%=accep %>');" type="button" value="<%=accep %>"/>
                <input class="simplemodal-close" type="button"  onclick="" value="<%=cancel %>"/>
            </div>           
        </div>
            <div id="joinsplit" class="tablemodal">
            <div class="tabtitle"></div>
            <div class="tablenumber">
                <p><%=tbnum %> :</p>
            </div>
            <div align="center" class="tabkey">
                <input id="from" class="movesplit" maxlength="4" disabled="true" value="" />
                <input id="to" class="movesplit" maxlength="4" disabled="true" value="" />
                <input id="exp" maxlength="10" disabled="true" value="" />
                <table cellpadding="5" cellspacing="10">
                    <tr>
                        <td onclick="NumTable1('1');">1</td>
                        <td onclick="NumTable1('2');">2</td>
                        <td onclick="NumTable1('3');">3</td>
                    </tr>
                    <tr>
                        <td onclick="NumTable1('4');">4</td>
                        <td onclick="NumTable1('5');">5</td>
                        <td onclick="NumTable1('6');">6</td>
                    </tr>
                    <tr>
                        <td onclick="NumTable1('7');">7</td>
                        <td onclick="NumTable1('8');">8</td>
                        <td onclick="NumTable1('9');">9</td>
                    </tr>
                    <tr>
                        <td onclick="NumTable1('0');">0</td>
                        <td onclick="NumTable1('m');"><></td>
                        <td onclick="NumTable1('j');">+ </td>
                    </tr>
                    <tr>
                        <td colspan="3" onclick="NumTable1('b');"><<</td>
                    </tr>
                </table>
            </div>
            <div align="center" class="tabfunc">
                <input class="simplemodal-close" onclick="JoinMove('<%=accep %>');" type="button" value="<%=accep %>"/>
                <input class="simplemodal-close" type="button"  onclick="" value="<%=cancel %>"/>
            </div>
        </div>
        <div id="updatetb" class="tablemodal">
            <div class="tabtitle"></div>
            <div class="tablenumber">
                <p><%=tbnum %> :</p>
            </div>
            <div align="center" class="tabkey">
                <input id="numupdate" maxlength="4" disabled="true" value="" />
                <input id="tbstate" disabled="true" value="" />
                <table cellpadding="5" cellspacing="10">
                    <tr>
                        <td onclick="NumTable2('1');">1</td>
                        <td onclick="NumTable2('2');">2</td>
                        <td onclick="NumTable2('3');">3</td>
                    </tr>
                    <tr>
                        <td onclick="NumTable2('4');">4</td>
                        <td onclick="NumTable2('5');">5</td>
                        <td onclick="NumTable2('6');">6</td>
                    </tr>
                    <tr>
                        <td onclick="NumTable2('7');">7</td>
                        <td onclick="NumTable2('8');">8</td>
                        <td onclick="NumTable2('9');">9</td>
                    </tr>
                    <tr>
                        <td onclick="NumTable2('0');">0</td>
                        <td colspan="2" onclick="NumTable2('b');"><<</td>
                    </tr>
                </table>
            </div>
            <div align="center" class="tabfunc">
                <input  onclick="UpdateStateTB('1','<%=accep %>');" type="button" value="<%=free %>"/>
                <input  onclick="UpdateStateTB('5','<%=accep %>');" type="button" value="<%=clean %>"/>
                <input  onclick="UpdateStateTB('6','<%=accep %>');" type="button" value="<%=jointb %>"/>
                <input class="simplemodal-close" type="button"  onclick="" value="<%=cancel %>"/>
            </div>
        </div>
    </body>
</html>
